package org.chen.domain.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class ConfigDTO {
    private String id;
    
    @NotBlank(message = "配置名称不能为空")
    private String name;
    
    @NotBlank(message = "虚拟人物不能为空")
    private String avatarId;
    
    @NotBlank(message = "语音不能为空")
    private String voiceId;
    
    private String backgroundColor;

    private String backgroundFit;

    private String backgroundPlayStyle;

    private String backgroundType;

    private String backgroundUrl;

    private String backgroundId;

    // 新增人物配置字段
    @JsonProperty("xOffset")
    private Double xOffset;
    @JsonProperty("yOffset")
    private Double yOffset;
    private Double scale;

    private Integer width = 1280;
    
    private Integer height = 720;
    
    private Boolean isDefault;

    private Boolean isCaption;

    private String configType;
}
